# person_info = {
#     "name": "Alex",
#     "age": 30,
#     "country": "USA",
#     "language": ["English", "Spanish"],
#     "is_student": False
# }
# value=person_info.get("name")
# person_info.update({'age':31})
# person_info['height']=175
# del person_info['is_student']
# # print(person_info)
# print(person_info.items())
# person_info.update({'email':'alex@example.com'})
# person_info.update({'language':['english','franch','spanish']})
# print(person_info)

# list1=person_info['language']
# list_lenth=len(list1)
# print(list_lenth)
# for i in range(1,4):
#     key=f'hobby{i}'
#     value=f'hobby{i} value'
#     person_info[key] = value
# print(person_info)

employees = {
    101: {
        "name": "Alice",
        "age": 31,
        "gender": "Female",
        "position": "Data Scientist",
        "team": "Research",
        "salary_history": [70000, 80000, 90000]
    }
}

employees[102]={"name": "kofoid",
        "age": 3,
        "gender": "Female",
        "position": "Data Scientist",
        "team": "Research",
        "salary_history": [70000, 80000, 90000,95000]
    }
employees1={
    103:{
        'name':"",
        "position":""
    }
}
print(employees1)
# i=next(iter(employees))
# for g in employees:
#     del employees[i]["gender"]
#     i+=1
# print(employees)
# i=101
# for g in employees:
#     if employees[i]['age']>25:
#         print()
# print(i,employees[i]['name'])
# 对`employees`中的每个员工，添加'bonus'键至其字典中，其中值是最新薪资的10%
# i=101
# for g in employees:
#     bonus=employees[i]['salary_history'][-1]/10
#     employees[i].update({'bonus':bonus})
#     i+=1
# print(employees)
# employees[101].update({'position':'senior_Data_Scientist'})
# print(employees)



# list_salary=employees[101]['salary_history']
# print(list_salary)
# sum=0
# m=0
# for i in list_salary:
#     sum+=i
#     m+=1
# a=sum/m
# print(sum,a)

